package com.yst.sqlbuilder;

import com.yst.lambda.TableFieldFunc;

public abstract class SQLFieldNullCompare<T> extends SQLField<T> implements ISQLFieldExpression<T> {
    abstract Symbol getSymbol();
    public SQLFieldNullCompare(TableFieldFunc<T, ?> field) {
        super(field);
    }
    public SQLFieldNullCompare(TableFieldFunc<T, ?> field, IAliasExpression parentSelect) {
        super(field, parentSelect);
    }
    @Override
    public String generateExpression(GenerateParam param) {
        return super.generateExpression(param).concat(" ").concat(getSymbol().symbol);
    }
    @Override
    public IEntitiesConfig getEntitiesConfig() {
        return super.getEntitiesConfig();
    }
}
